import param2TestVue from "./param2-test-vue.vue"
export default {
    data() {
        return {
            childMsg: ""
        }
    },
    methods: {
        handleParam2Event(val) {
            this.childMsg = val;
        }
    },
    render(createElement) {
        let _this = this;
        return createElement('div', [
            createElement("span", [_this.childMsg]),
            createElement(param2TestVue, {
                
                on: {
                    //此处就是监听了 param2TestVue 组件的 param2-event 事件
                    'param2-event': _this.handleParam2Event
                }
            })
        ])
    }
}